package org.bigjava.novelplatform.service;

import org.bigjava.novelplatform.entity.Books;
import org.bigjava.novelplatform.entity.Chapter;

import java.util.List;

/*作者权限操作-管理章节*/
public interface AuthorChapterService {
    /*添加章节*/
    boolean addChapter(Chapter chapter,String content);

    /*发布章节*/
    boolean releaseChapter(Long chapterId);

    /*存贮稿件*/
    Integer keepChapter(Long chapterId,Integer bookId);

    /*修改指定书籍 指定章节 的内容*/
    boolean modifiedSection(Chapter chapter,String content,Boolean state);

    /*插入章节*/
    boolean insertChapter(Chapter chapter);

    /*删除章节*/
    boolean deleteChapter(Long chapterId);

    /*历史记录恢复*/
    boolean restoreHistory(Integer bookid,String chapterFileName);

    /*获取指定书籍目录下的DeletedChapter文件夹下的所有文件名集合*/
    String[] getChangedData(Integer bookid);

    /**获取指定id章节的历史版本*/
    List<String> getChapterHistory(Long chapter);

    /**获取已删除的章节 参数:书籍id*/
    List<String> getChapterDeleted(Integer booId);

}
